package com.jjh.wrapper;

import com.jjh.pojo.User;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

/**
 * 查询条件
 */
public class QueryWrapper {

    /**
     * 参数集合
     */
    private  List<QueryBody> queryArgs = new ArrayList<>();

    public QueryWrapper(){}

    /**
     * 相等条件
     */
    public QueryWrapper eq(String key,String arg){
        QueryBody queryBody = new QueryBody(key,arg);
        queryArgs.add(queryBody);
        return this;
    }

    public List<QueryBody> getQueryArgs() {
        return queryArgs;
    }

//    public void setQueryArgs(List<Map<String, String>> queryArgs) {
//        this.queryArgs = queryArgs;
//    }
}
